﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YJ_App.Admin_System.Dtos
{
    /// <summary>
    /// 菜单管理Dto
    /// </summary>
    public class MenuAdminDto
    {
        /// <summary>
        /// 获取菜单配置列表输出
        /// </summary>
        public class GetMenuListOuput
        {
            /// <summary>
            /// id
            /// </summary>
            public int Id { get; set; }

            /// <summary>
            /// 父级id
            /// </summary>
            public int? ParentId { get; set; }

            /// <summary>
            /// 名称
            /// </summary>
            public required string Name { get; set; }

            /// <summary>
            /// 路由
            /// </summary>
            public required string Path { get; set; }

            /// <summary>
            /// 图标
            /// </summary>
            public required string Icon { get; set; }

            /// <summary>
            /// 排序
            /// </summary>
            public int Sort { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool EnableMark { get; set; }

            /// <summary>
            /// 下级（子）菜单信息
            /// </summary>
            public required List<GetMenuListOuput> Children { get; set; }
        }

        /// <summary>
        /// 设置菜单是否启用-输入
        /// </summary>
        public class UpdateIsEnableMarkInput
        {
            /// <summary>
            /// id
            /// </summary>
            public int Id { get; set; }

            /// <summary>
            /// 是否启用菜单
            /// </summary>
            public bool IsEnableMark { get; set; }
        }
    }
}
